package cn.afterturn.easypoi.word.entity.bookmark;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.persistence.*;

/*@Data
@ToString(callSuper = true)
@EqualsAndHashCode()*/
@Entity
@Table(name = "multiValueEntityVO", schema = "jeecg-boot-sjk", catalog = "")
public class MultiValueEntityVO {
    @Id
    @Column(name = "id")
    private  String id;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBookmarkvalue() {
        return bookmarkvalue;
    }

    public void setBookmarkvalue(String bookmarkvalue) {
        this.bookmarkvalue = bookmarkvalue;
    }

    public int getSequence() {
        return sequence;
    }

    public void setSequence(int sequence) {
        this.sequence = sequence;
    }

    public ImageValueEntityVO getImageValueEntityVO() {
        return imageValueEntityVO;
    }

    public void setImageValueEntityVO(ImageValueEntityVO imageValueEntityVO) {
        this.imageValueEntityVO = imageValueEntityVO;
    }

    public BookMarkEntityVO getBookMarkEntityVO() {
        return bookMarkEntityVO;
    }

    public void setBookMarkEntityVO(BookMarkEntityVO bookMarkEntityVO) {
        this.bookMarkEntityVO = bookMarkEntityVO;
    }

    private  String bookmarkvalue;
    private  int sequence;
    @OneToOne(cascade = CascadeType.ALL)
    @JoinColumn(name = "multiimagevalue_id")
    private ImageValueEntityVO imageValueEntityVO;
    @JsonIgnoreProperties("multiValueEntityVOS")
    @ManyToOne(cascade = CascadeType.ALL,optional = false,fetch = FetchType.LAZY)
    @JoinColumn(name = "fid"/*,foreignKey = @ForeignKey(name = "none",value = ConstraintMode.NO_CONSTRAINT)*/)
    private BookMarkEntityVO bookMarkEntityVO;
}
